package demo.spring.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Created by lushun.chen on 2017/3/26.
 *
 * @author lushun.chen
 */
@Aspect
public class NotVeryUsefulAspect {

    @Pointcut("execution(* transfer(..))")// the pointcut expression
    private void anyOldTransfer() {
    }

    @Pointcut("execution(public * *(..))")
    private void anyPublicOperation() {
    }

    @Pointcut("within(demo.spring.aop..*)")
    private void inTrading() {
    }

    @Pointcut("anyPublicOperation() && inTrading()")
    private void tradingOperation() {
    }
}
